package com.battle.service.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.battle.pojo.entity.CaseBaseInfo;
import com.battle.pojo.vo.caseBaseInfo.CaseHomePageVo;
import org.springframework.stereotype.Repository;

    import com.battle.pojo.dto.caseBaseInfo.SelectCaseBaseInfoDto;
    import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
* 【描 述】：
* 【环 境】：J2SE
* 【详 细】：
*
*/
@Repository
public interface CaseBaseInfoMapper extends BaseMapper< CaseBaseInfo > {

    /**
    * 搜索战例
    * @param dto
    * @return
    */
    Page< CaseBaseInfo > selectCaseBaseInfo(SelectCaseBaseInfoDto dto);

    /**
     * 获取推荐的战例 最新的五个支队级战例
     * @return
     */
    List<CaseHomePageVo> selectRecommendCaseList();

    /**
     * 获取待办审批的战例 最新的待审核的五个战例
     * @return
     */
    List<CaseHomePageVo> selectBacklogCaseList();
}